// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'AIR' 
0A95: enable_thread_saving 

:AIR_D
wait 0 
if 
   Player.Defined(0)
jf @AIR_D 
Model.Load(#HYDRA)
Model.Load(#FAM1)
Model.Load(1636)
038B: load_requested_models 
if or
   not Model.Available(#HYDRA)
   not Model.Available(#FAM1)
   not Model.Available(1636)
jf @AIR_6D 
0ACD: show_text_highpriority "~R~~H~FATAL ERROR TERMINATE" time 19000 
end_thread 

:AIR_6D
wait 0 
04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 -100.0 80.0 
21@ = Car.Create(#HYDRA, 11@, 12@, 13@)
Actor.StorePos($PLAYER_ACTOR, 11@, 12@, 13@)
Car.SetImmunities(21@, 1, 1, 1, 1, 1)
039F: set_car 21@ race_to 11@ 12@ 
0825: set_helicopter 21@ instant_rotor_start 
20@ = Actor.CreateAsDriver(Gang2, #FAM1, 21@)
Actor.RemoveFromMissionCleanupList(20@)
Actor.Health(20@) = 100000
Actor.SetImmunities(20@, 1, 1, 1, 1, 1)
30@ = Marker.CreateAboveActor(20@)
Model.Load(#HEATSEEK)
038B: load_requested_models 
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset 1.0 0.0 0.0 
8@ = Actor.Create(Gang2, #FAM1, 23@, 24@, 25@)
Actor.SetImmunities(8@, 1, 1, 1, 1, 1)
0638: AS_actor 8@ stay_put 1 
Actor.GiveWeaponAndAmmo(8@, HeatSeek, 8000)
0337: set_actor 8@ visibility 0 
06A7: put_actor 8@ into_turret_on_car 21@ at_car_offset 1.2 1.0 1.0 position 1 shooting_angle 360.0 360.0 with_weapon 36 
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset -1.0 0.0 0.0 
9@ = Actor.Create(Gang2, #FAM1, 23@, 24@, 25@)
Actor.SetImmunities(9@, 1, 1, 1, 1, 1)
0638: AS_actor 9@ stay_put 1 
Actor.GiveWeaponAndAmmo(9@, HeatSeek, 8000)
0337: set_actor 9@ visibility 0 
06A7: put_actor 9@ into_turret_on_car 21@ at_car_offset -1.2 1.0 1.0 position 1 shooting_angle 360.0 360.0 with_weapon 36 
jump @AIR_25F 

:AIR_202
04C4: store_coords_to 11@ 12@ 13@ from_actor $PLAYER_ACTOR with_offset 0.0 -100.0 80.0 
Car.PutAt(21@, 11@, 12@, 13@)
039F: set_car 21@ race_to 11@ 12@ 
0825: set_helicopter 21@ instant_rotor_start 
0AF0: 15@ = get_int_from_ini_file "CLEO\POZIT.INI" section "RAID" key "VALUE" 

:AIR_25F
wait 0 
if 
0AB6: store_target_marker_coords_to 1@ 2@ 3@ // IF and SET 
jf @AIR_29D 
04D2: set_plane 21@ fly_autopilot_around_point 1@ 2@ 3@ altitude_between 75.0 and 75.0 
0745: set_hydra 21@ thrust_to_horizontal 
jump @AIR_2C4 

:AIR_29D
wait 500 
0ACD: show_text_highpriority "~R~~H~SET DISTINATION" time 100 
jump @AIR_25F 

:AIR_2C4
wait 0 
if 
00EE:   actor 20@ sphere 0 near_point 1@ 2@ radius 25.0 25.0 in_car 
jf @AIR_2F1 
jump @AIR_34F 

:AIR_2F1
0AB6: store_target_marker_coords_to 1@ 2@ 3@ // IF and SET 
0AF0: 4@ = get_int_from_ini_file "CLEO\POZIT.INI" section "AIR" key "RES" 
if or
  4@ == 1 
81F3:   not car 21@ in_air 
jf @AIR_348 
Actor.RemoveReferences(20@)
Car.RemoveReferences(21@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
end_thread 

:AIR_348
jump @AIR_2C4 

:AIR_34F
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset 0.0 0.0 -9.0 
0ACD: show_text_highpriority "~R~~H~OK" time 190 
22@ = Object.Create(1636, 23@, 24@, 25@)
0750: set_object 22@ visibility 1 
04D9: object 22@ set_scripted_collision_check 1 
Object.CollisionDetection(22@) = True
0906: set_object 22@ mass_to 30000.0 // float 
0908: set_object 22@ turn_mass_to 30000.0 // float 
Object.ToggleInMovingList(22@) = True
08D2: object 22@ scale_model 1.1 
28@ = Actor.Angle(20@)
02F6: 26@ = sine 28@ // (float) 
02F7: 27@ = cosine 28@ // (float) 
27@ *= 2.0 
26@ *= 2.0 
26@ *= -10.0 
Object.Throw(22@, 26@, 27@, 25@)
Object.StorePos(22@, 5@, 6@, 7@)

:AIR_418
wait 0 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 0.0 0.0 0.0 
02CE: 31@ = ground_z_at 5@ 6@ 7@ 
016F: create_particle 3 rotation_factor 0.0 size 1.0 intensity 150 flags 255 0 0 at 1@ 2@ 3@ 
024F: create_corona_with_radius 0.2 type 2 lensflares 0 with_color 255 0 0 at 1@ 2@ 3@ 
09E5: create_flash_light_at 5@ 6@ 7@ RGB_mask 255 0 0 radius 200.0 
if and
   not 14 >= 31@ 
04DA:   has_object 22@ collided 
jf @AIR_4B8 
jump @AIR_537 

:AIR_4B8
0AF0: 4@ = get_int_from_ini_file "CLEO\POZIT.INI" section "AIR" key "RES" 
0AF0: 15@ = get_int_from_ini_file "CLEO\POZIT.INI" section "RAID" key "VALUE" 
if or
  4@ == 1 
04E7:   object 22@ in_water 
8474:   not actor $PLAYER_ACTOR near_object_in_cube 22@ radius 800.0 800.0 800.0 sphere 0 
jf @AIR_530 
jump @AIR_906 

:AIR_530
jump @AIR_418 

:AIR_537
wait 0 
0209: 10@ = random_int_in_ranges 1 4 
if 
  10@ == 1 
jf @AIR_74A 
33@ = 0.0 

:AIR_560
wait 0 
Object.StorePos(22@, 5@, 6@, 7@)
024F: create_corona_with_radius 33@ type 2 lensflares 0 with_color 255 255 0 at 1@ 2@ 3@ 
016F: create_particle 3 rotation_factor 0.0 size 33@ intensity 150 flags 100 0 0 at 1@ 2@ 3@ 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 0.0 0.0 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 33@ 0@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 0@ 33@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 33@ 0@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 0@ 33@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 33@ 0@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
0208: 0@ = random_float_in_ranges -40.2 40.2 
0400: store_coords_to 5@ 6@ 7@ from_object 22@ with_offset 0@ 33@ 0.0 
020C: create_explosion_with_radius 3 at 5@ 6@ 7@ 
09E5: create_flash_light_at 5@ 6@ 7@ RGB_mask 255 255 0 radius 33@ 
33@ += 1.0 
  33@ > 250.0 
jf @AIR_560 
jump @AIR_906 

:AIR_74A
if 
  10@ == 2 
jf @AIR_7C6 
29@ = 0 

:AIR_763
wait 0 
if 
   not Actor.Dead(8@)
jf @AIR_788 
0668: AS_actor 8@ rotate_and_shoot_at 1@ 2@ 3@ 2000 ms 

:AIR_788
if 
   not Actor.Dead(9@)
jf @AIR_7A9 
0668: AS_actor 9@ rotate_and_shoot_at 1@ 2@ 3@ 2000 ms 

:AIR_7A9
29@ += 1 
  29@ > 550 
jf @AIR_763 
jump @AIR_906 

:AIR_7C6
if 
  10@ == 3 
jf @AIR_8E6 
14@ = 0 

:AIR_7DF
0208: 0@ = random_float_in_ranges -0.6 0.6 
0208: 17@ = random_float_in_ranges -0.6 0.6 
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset 0@ 1.0 17@ 
06BC: create_M4_shoot_from 23@ 24@ 25@ target 1@ 2@ 3@ energy 700 
0208: 0@ = random_float_in_ranges -0.6 0.6 
0208: 17@ = random_float_in_ranges -0.6 0.6 
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset 0@ 1.0 17@ 
06BC: create_M4_shoot_from 23@ 24@ 25@ target 1@ 2@ 3@ energy 700 
0208: 0@ = random_float_in_ranges -0.6 0.6 
0208: 17@ = random_float_in_ranges -0.6 0.6 
0407: store_coords_to 23@ 24@ 25@ from_car 21@ with_offset 0@ 1.0 17@ 
06BC: create_M4_shoot_from 23@ 24@ 25@ target 1@ 2@ 3@ energy 700 
14@ += 1 
  14@ > 450 
jf @AIR_7DF 
jump @AIR_906 

:AIR_8E6
if 
  10@ == 4 
jf @AIR_8FF 
jump @AIR_906 

:AIR_8FF
jump @AIR_537 

:AIR_906
16@ += 1 
0AF0: 15@ = get_int_from_ini_file "CLEO\POZIT.INI" section "RAID" key "VALUE" 
if 
003B:   16@ == 15@ // (int) 
jf @AIR_96E 
16@ = 1 
Object.RemoveReferences(22@)
Object.Destroy(22@)
Model.Destroy(1636)
Actor.RemoveReferences(20@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Car.RemoveReferences(21@)
end_thread 

:AIR_96E
Object.RemoveReferences(22@)
Object.Destroy(22@)
Model.Destroy(1636)
jump @AIR_202 
